package com.dq.repository.org;


import com.dq.domain.org.Org;
import com.dq.domain.org.OrgHonorWall;
import com.dq.domain.sys.user.user.StaffUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author luchangtong
 * @Date 2019/11/22 15:45
 */
@Repository
public interface OrgHonorWallRepository extends JpaRepository<OrgHonorWall, Long> {
    List<OrgHonorWall> findBySysDeptAndDeletedFalse(Org sysDept);

    Page<OrgHonorWall> findBySysDeptAndDeletedFalse(Org sysDept, Pageable pageable);
    Long countBySysDeptAndDeletedFalse(Org sysDept);

    List<OrgHonorWall> findBySysDeptAndStaffUserAndDeletedFalse(Org org, StaffUser staffUser);


}
